/*
 * Model.cpp
 *
 *  Created on: Jan 12, 2014
 *      Author: knuke
 */

#include "Model.hpp"
#include "Mesh.hpp"
#include "Material.hpp"

namespace gengine
{

  Model::Model() : root_node_(0)
  {
  }

  Model::~Model() throw ()
  {
  }

  const Node* Model::getRootNode() const
  {
    return root_node_;
  }

  void Model::setRootNode(Node* rootNode)
  {
    root_node_ = rootNode;
  }

  void Model::addMesh(Mesh* mesh)
  {
    meshes_.push_back(mesh);
  }

  void Model::addMaterial(Material* material)
  {
    materials_.push_back(material);
  }

  const Material* Model::getMaterial(uint index)
  {
    return materials_[index];
  }

} /* namespace gengine */


